package com.cuckoo.mall.thus.menucart;

import android.os.Bundle;
import android.widget.FrameLayout;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.bgn.baseframe.base.BaseActivity;
import com.cuckoo.mall.R;


/**
 * Created by Administrator on 2018/4/8.
 */
@Route(path = "/mall/cartActivity", group = "mall")
public class CartActivity extends BaseActivity {
    MenucartFragment fragment;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setIsLoadTitleBar(false);
        setContentView(createFragmentContainnerView());
        fragment = new MenucartFragment();
        loadFragment(fragment, 0);
    }

    @Override
    protected void onResume() {
        super.onResume();
        if (fragment != null) {
            fragment.showBackIco();
        }
    }


    @Override
    protected void onStop() {
        super.onStop();
        if (fragment != null) {
            fragment.resetFreshState(true);
        }
    }
}
